//if
let k = new Date().getDay()
console.log(typeof k, typeof (k))
if (k === 0) {
    console.log('星期日')
} else if (k === 1) {
    console.log('星期一')
} else if (k === 2) {
    console.log('星期二')
} else if (k === 3) {
    console.log('星期三')
} else if (k === 4) {
    console.log('星期四')
} else if (k === 5) {
    console.log('星期五')
} else {
    console.log('星期六')
}

switch (k) {
    case 1:
        console.log('星期一')
        break
    case 2:
        console.log('星期二')
        break
    case 3:
        console.log('星期三')
        break
    case 4:
        console.log('星期四')
        break
    case 5:
        console.log('星期五')
        break
    case 6:
        console.log('星期六')
        break
    default:
        console.log('星期日')
        break
}

console.log(`星期${'日一二三四五六'.charAt(k)}`)
